﻿using Com.FastSearch.Esp.Search.View;

namespace ESPWebPartsUnitTest.mock
{
    class DocumentSummaryFieldMock: Com.FastSearch.Esp.Search.Result.IDocumentSummaryField
    {
        private readonly string name;       
        private readonly string stringValue;
        private readonly string summary;

        public DocumentSummaryFieldMock(string name, string value, string summary)
        {
            this.name = name;
            stringValue = value;
            this.summary = summary;
        }

        public bool IsEmpty()
        {
            return false;
        }

        public string Name
        {
            get { return name; }
        }

        public float FloatValue
        {
            get;
            set;
        }

        public double DoubleValue
        {
            get;
            set;
        }

        public int IntValue
        {
            get;
            set;
        }

        public string StringValue
        {
            get { return stringValue; }
        }

        public string Summary
        {
            get { return summary; }
        }

        public FieldType Type
        {
            get { return FieldType.STRING; }
        }
    }
}